package element;

import java.awt.*;

/**
 * @author 邓哈哈
 * 2023/2/21 23:21
 * Function:
 * Version 1.0
 */

public class Rock extends MyObject {
    /**
     * 初始化
     */
    public Rock() {
        //初始化图片
        this.img = Toolkit.getDefaultToolkit().getImage("src/main/imgs/rock1.png");
        //初始化坐标
        this.x = (int) (Math.random() * 700);
        this.y = (int) (Math.random() * (850 - 500) + 300);
        //初始化尺寸
        this.width = 71;
        this.height = 71;
        //初始化存活状态(默认为未存活)
        this.alive = false;
        //初始化质量
        this.quality = 40;
        //初始化积分
        this.count = 1;
        //初始化类型
        this.type = 2;
    }
}
